﻿using System;

namespace Program11
{
    class Program
    {
        static void Main(string[] args)
        {
            string pwd1 = "123456";
            Console.WriteLine("密码明文:{0}", pwd1);
            var enPwd1 = Encryption.GetEncryptString(pwd1);
            Console.WriteLine("密文:{0}", enPwd1);


            //string pwd1 = "123456Ymmy";
            //Console.WriteLine("密钥明文{0}", pwd1);
            //var md5Pwd = Encryption.GetMd5(pwd1);
            //Console.WriteLine("密码MD5密文{0}", md5Pwd);

            ////加盐
            //string pwd2 = "123 456";
            //Console.WriteLine("密钥明文{0}", pwd2);
            //var md5Pwd2 = Encryption.GetMd5(pwd2);
            //Console.WriteLine("密码MD5密文{0}", md5Pwd2);

            //string pwd3 = "123456Ymmy";
            //Console.WriteLine("密钥明文{0}", pwd3);
            //var shaPwd = Encryption.GetSHA(pwd3);
            //Console.WriteLine("密码MD5密文{0}", shaPwd);

            ////二次加密
            //var finalmd5 = Encryption.GetMd5(md5Pwd2);
            //Console.WriteLine("二次密文{0}", finalmd5);
            ////再加密SHA512
            //var final512 = Encryption.GetSHA(finalmd5);
            //Console.WriteLine("二次密文SHA512再加密{0}",final512);
        }
    }
}
